(function (root,factory) {
    root.Vue = factory();
})(this,function () {//Window Vue
    //默认配置
    var DEFALUTS={
        el:"body",
        data:{}
    }
    var Vue = function (options) {
        this.extend(this,DEFALUTS,options);
        this.observe();
    }
    Vue.prototype={
        extend:function () {//仿jquery.extend
            for(var i =1 ;i<arguments.length;i++){
                for(var name in arguments[i]){
                    this[name]=arguments[i][name];
                }
            }
        },
        observe:function () {
            for(var key in this.data){
                Object.defineProperty(this.data,key,{
                    get:function () {
                        return this.data[key];
                    },
                    set:function () {
                    }
                });
            }
        }
    }
    return Vue;
})
console.info(Vue);